<%@ Register TagPrefix="skm" Namespace="FAQControls" Assembly="FAQControls" %>
<%@ Page language="c#" Codebehind="EditCategory.aspx.cs" AutoEventWireup="True" Inherits="Adge.Web.Faq.Admin.EditCategory" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>skmFAQs.NET :: Edit Category</title>
		<LINK href="../FAQstyle.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body MS_POSITIONING="FlowLayout">
		<form id="Form1" method="post" runat="server">
			<skm:LoginPanel id="LoginPanel1" runat="server" Cssclass="faq_logout"></skm:LoginPanel>
			<h1>Edit Category</h1>
			<div class="faq_breadcrumb"><a href="Default.aspx">skmFAQs.NET Administration</a> &gt; <a href="CategoryAdmin.aspx">
					Category Administration</a> &gt; Edit Category</div>
			<p><TABLE border="0">
					<TBODY>
						<TR>
							<TD align="right"><STRONG>Name:</STRONG></TD>
							<TD align="left"><asp:TextBox id="nameAdd" runat="server" MaxLength="100" Columns="40"></asp:TextBox>
								<asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ControlToValidate="nameAdd" Display="Dynamic"
									ErrorMessage="You must enter a name for the category.">*</asp:RequiredFieldValidator></TD>
						</TR>
						<TR>
							<TD vAlign="top" align="right"><STRONG>Description:</STRONG></TD>
							<TD align="left">
								<asp:TextBox id="descriptionAdd" runat="server" MaxLength="1000" Rows="4" Columns="40" TextMode="MultiLine"></asp:TextBox></TD>
						</TR>
						<TR>
							<TD vAlign="top" align="right" height="11"><STRONG>Parent Category:</STRONG></TD>
							<TD align="left" height="11">
								<asp:Repeater id="rptCategoriesAdd" runat="server">
									<HeaderTemplate>
										<table class="faq_infoTable" cellpadding="3">
									</HeaderTemplate>
									<ItemTemplate>
										<%# PickTRColor(FAQComponents.InvariantString.ToInt32(DataBinder.Eval(Container.DataItem, "GroupID").ToString())) %>
										<td>
											<%# Adge.UI.WebControls.DGHelpers.DisplayDepth(FAQComponents.InvariantString.ToInt32(DataBinder.Eval(Container.DataItem, "Depth").ToString())) %>
											<%# DisplayRadioButton(FAQComponents.InvariantString.ToInt32(DataBinder.Eval(Container.DataItem, "CategoryID").ToString()), ParentCategoryID) %>
											<%# DataBinder.Eval(Container.DataItem, "Name") %>
										</td>
						</TR>
						</ItemTemplate>
						<FooterTemplate>
				</TABLE>
				</FooterTemplate> </asp:Repeater></TD></TR>
				<TR>
					<TD align="center" colSpan="2">
						<asp:Button id="btnAddCategory" runat="server" Text="Update Category" onclick="btnAddCategory_Click"></asp:Button>&nbsp;&nbsp;
						<asp:Button id="btnCancel" runat="server" CausesValidation="False" Text="Cancel" onclick="btnCancel_Click"></asp:Button></TD>
				</TR>
				</TBODY></TABLE></p>
		</form>
	</body>
</HTML>
